<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- 防止反扒 -->
    <meta name="referrer" content="never">
    <link rel="stylesheet" href="./css/base.css">
    <script src="./js/common.js"></script>
    <script src="./datas/home.js"></script>
    <script src="./js/vue.js"></script>
    <link rel="import" href="./components/TopBar.html">
    <link rel="import" href="components/FilmItem.html">
    <title>电影首页</title>
    <script>
        window.onload = function () {
            new Vue({
                el: ".app",
                data: {
                    homeData: homeData.result,
                    flag: true
                },
            })
        }
    </script>
</head>

<body>
    <!-- 项目容器 start-->
    <div class="app">
        <!-- 头部搜索框 start -->
        <top-bar></top-bar>
        <!-- 头部搜索框 end -->
        <!-- 首页正文 start -->
        <div class="content-box">
            <div class="home-box">
                <!-- 首页分类列表 start -->
                <div v-for="types in homeData">
                    <div class="list-name">
                        <span>{{types.typeName}}</span>
                        <span class="list-more">更多 > </span>
                    </div>
                    <!-- <div class="list-content"> -->
                    <!-- 电影展示组件 start -->
                    <!-- <film-item v-for="(film, index) in types.list" :key="index"
                        :film="film"></film-item> -->
                    <film-item class="list-content" :films="types.list"></film-item>
                    <!-- 电影展示组件 end -->
                </div>
            </div>
        </div>
    </div>
    <!-- 首页正文 end -->
    </div>
    <!-- 项目容器 end-->
</body>

</html>